package p270jp.pxv.android.commonUi.view;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import p270jp.pxv.android.R;
import p300l2.ResourcesCompat;

/* renamed from: jp.pxv.android.commonUi.view.RightTopEdgeAdsBackgroundView */
/* loaded from: classes2.dex */
public class RightTopEdgeAdsBackgroundView extends View {

    /* renamed from: a */
    public Paint f18969a;

    public RightTopEdgeAdsBackgroundView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, 0);
        Paint paint = new Paint();
        this.f18969a = paint;
        Resources resources = getResources();
        Resources.Theme theme = getContext().getTheme();
        ThreadLocal<TypedValue> threadLocal = ResourcesCompat.f20461a;
        paint.setColor(resources.getColor(R.color.old_color_yellow_ffb600, theme));
        this.f18969a.setStyle(Paint.Style.FILL);
    }

    @Override // android.view.View
    public void draw(Canvas canvas) {
        super.draw(canvas);
        int width = getWidth();
        int height = getHeight();
        Path path = new Path();
        path.moveTo(0.0f, 0.0f);
        float f = (float) width;
        path.lineTo(f, 0.0f);
        path.lineTo(f, (float) height);
        path.close();
        canvas.drawPath(path, this.f18969a);
    }
}
